package com.zxn.dragdemo.adapter;

import android.view.View;
import android.widget.ImageView;

import androidx.annotation.LayoutRes;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zxn.dragdemo.bean.PictureInfo;
import com.zxn.dragdemo.R;

//import butterknife.BindView;
//import butterknife.ButterKnife;

/**
 * Created by zxn on 2020-3-18 14:52:32.
 */
public class ImageItemAdapter
        extends BaseQuickAdapter<PictureInfo, ImageItemAdapter.ImageItemHolder> {


    public ImageItemAdapter() {
        super(ImageItemHolder.ITEM_LAYOUT_ID);
    }

    @Override
    protected void convert(ImageItemHolder helper, PictureInfo item) {
        helper.onConvert(item);
    }

    public static class ImageItemHolder extends BaseViewHolder {

        private static @LayoutRes
        int ITEM_LAYOUT_ID = R.layout.item_rv_image;
        //@BindView(R.id.iv_img_pic)
        ImageView ivImgPic;

        ImageItemHolder(View view) {
            super(view);
            //ButterKnife.bind(this, view);
            ivImgPic = view.findViewById(R.id.iv_img_pic);
        }

        void onConvert(PictureInfo item) {
            //ivImgPic.setImageResource();
        }
    }

}


